// pages/list/list.js
import { $listFinish, $listLoading, $listLoaded } from '../../components/index';
Page({
  data: {
    list: 22
  },
  onLoad() {},
  pullDown() {
    $listLoading();
    setTimeout(() => {
      $listLoaded();
      let list = this.data.list;
      list >= 30 ? $listFinish() : this.setData({ list: this.data.list + 5 });
    }, 2000);
  }
});
